export type FormulaGroup = {
  id: number
  gid?: number
  name: string
  parent_id?: number
  sort_num: number
  vcode: string
  is_active: boolean
}

export type GroupItem = {
  id: number
  name: string
  partent_id?: number
  sort_num: number
  is_active: boolean
}

export type FormulaItem = {
  id: number
  rid?: number
  name: string
  unit: string
  formula: string
  fma_explain: string
  sort_num: number
  is_active: boolean
  gid?: number
  vcode?: string
}

export type columnItem = {
  id: number
  rid?: number
  name: string
  unit: string
  formula_id?: number
  is_constant: boolean
  constant: number | null
  is_index: boolean
  index_id?: number
  sort_num: number
  is_show: boolean
}
